package com.bl.student.dao.repository;

import com.bl.student.dao.model.VipEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by liangweikang on 18/2/1.
 */
public interface VipRepository extends JpaRepository<VipEntity, String> {

    List<VipEntity> findByUserId(String userId);

    Page<VipEntity> findAllByOrderByCreateTimeDesc(Pageable pageable);
}
